projects
/
pocl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
033b81d
)
compatibility with glibc-2.23
author
Andreas Beckmann
<anbe@debian.org>
Mon, 10 Oct 2016 11:38:39 +0000
(12:38 +0100)
committer
Andreas Beckmann
<anbe@debian.org>
Mon, 10 Oct 2016 11:38:39 +0000
(12:38 +0100)
inspired by the Ubuntu patch in 0.13-0ubuntu1
Gbp-Pq: Name glibc-2.23.patch
lib/kernel/vecmathlib/floattypes.h
patch
|
blob
|
history
diff --git
a/lib/kernel/vecmathlib/floattypes.h
b/lib/kernel/vecmathlib/floattypes.h
index fa4cc4499455d16d737dac60f92836a1b6ea23da..97c0738dc7bed85985767ab71646632e23b9464e 100644
(file)
--- a/
lib/kernel/vecmathlib/floattypes.h
+++ b/
lib/kernel/vecmathlib/floattypes.h
@@
-39,6
+39,7
@@
using namespace std;
__attribute__((__unused__))
#endif
+#if !defined(__GLIBC__) || (__GLIBC__ == 6 && __GLIBC_MINOR__ < 23)
// Capture libc macros, then undefine them
#ifndef isfinite
#error "isfinite is not a macro"
@@
-55,6
+56,7
@@
using namespace std;
#ifndef signbit
#error "signbit is not a macro"
#endif
+#endif
namespace {
template <typename T> inline int libc_isfinite(T x) { return isfinite(x); }